<?php

namespace App\Models\MongoDB;

use Jenssegers\Mongodb\Eloquent\Model;
use Jenssegers\Mongodb\Eloquent\SoftDeletes;

class MongoDBModel extends Model
{
    use SoftDeletes;

    protected $connection = 'mongodb';  //库名
    protected $collection = 'lx';    //文档名
    protected $primaryKey = '_id';    //设置id
    protected $guarded = ['id', 'name', 'phone'];  //设置字段白名单
//    protected $dates = ['deleted_at'];
}
